//
//  MS_ElectronicStopTipView.m
//  WisdomTheTramAPP
//
//  Created by 位立志 on 2018/1/10.
//  Copyright © 2018年 DouJin. All rights reserved.
//

#import "SJZScanView.h"

@interface SJZScanView()
@property (strong, nonatomic) IBOutlet UIButton *cancleBtn;

@end

@implementation SJZScanView

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    self = [[[NSBundle mainBundle] loadNibNamed:@"SJZScanView" owner:self options:nil] lastObject];
    if (self) {
        self.frame = frame;
        self.cancleBtn.layer.cornerRadius = 1;
        self.cancleBtn.layer.masksToBounds = YES;
    }
    return self;
    
}

- (IBAction)cancleClick {
    
    if (self.cancleBlock) {
        self.cancleBlock();
    }
    
}


- (IBAction)shouDianClick:(UIButton *)sender {
    
    sender.selected = !sender.selected;
    if (self.shoudianBlock) {
        self.shoudianBlock(sender.selected);
    }
    
}


@end
